package io.gitee.chearnee.fw.audit.constant.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import io.gitee.chearnee.fw.common.annotation.IBaseEnumDesc;
import io.gitee.chearnee.fw.common.annotation.IBaseEnumJson;
import io.gitee.chearnee.fw.common.model.IBaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 操作类型
 *
 * @author cn
 * @version 1.0
 * @description
 * @date 2021/6/18 14:13
 */
@Getter
@AllArgsConstructor
public enum OperationType implements IBaseEnum<Integer> {
  /**
   * 无操作
   */
  NULL(0, "无操作"),
  SELECT(1, "查询"),
  INSERT(2, "新增"),
  UPDATE(3, "修改"),
  DELETE(4, "删除"),
  EXPORT(5, "导出"),
  LOGIN(6, "登录"),
  LOGOUT(7, "退出登陆");
  @EnumValue
  @IBaseEnumJson
  private final Integer value;
  @IBaseEnumDesc("desc")
  private final String desc;

}
